<template>
  <div class="buying-pop-box" v-show="showFlag">
    <!-- 内容 -->
    <div class="buying-pop">
      <div class="layui-layer-title" style="cursor: move;">向理投师提问</div>
      <div id="" class="layui-layer-content">
        您尚未进行风险测评，暂不能购买
        <p>
          <router-link to="/evaluating">立即测评&gt;</router-link>
          </p>
      </div>
      <span class="layui-layer-setwin">
        <a @click="closeBox()" class="layui-layer-ico layui-layer-close layui-layer-close1" href="javascript:void(0);"></a>
      </span>
      <div class="layui-layer-btn">
        <a class="layui-layer-btn0" @click="closeBox()">取消</a>
        <router-link to="/evaluating" class="layui-layer-btn1">确定</router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['showFlag'],
  data () {
    return {

    }
  },
  methods: {
    closeBox () {
      this.showFlag = false
      this.$emit('closeFn')
    }
  }
}
</script>

<style scoped lang="scss">
.buying-pop-box{
  position: fixed;
  top:0;
  bottom:0;
  left:0;
  right: 0;
  background-color:rgba(0, 0, 0, .3);
  z-index: 10000;
}
.buying-pop{
  width: 340px !important;
  height: 188px !important;
  border-radius: 10px !important;
  background-color: #fff;
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
}
.buying-pop .layui-layer-title{
  height: 46px;
  background-color: #fff;
  border-radius: 10px 10px 0 0;
  color: #808080;
}
.buying-pop .layui-layer-btn .layui-layer-btn0{
  background-color: #fff !important;
  color: #cbcbcb;
  border-color: #e6e6e6 !important;
}
.buying-pop .layui-layer-btn .layui-layer-btn1{
  border-color:#f04e2d;
  background-color: #f04e2d;
  color: #fff;
}
.buying-pop .layui-layer-btn a{
  border-radius: 16px;
  height: 34px;
  line-height: 34px;
  padding: 0 18px;
}
.buying-pop .layui-layer-content{
  text-align: center;
  font-size: 16px !important;
  color: #484848;
  padding: 20px;
  line-height: 24px;
}
.buying-pop .layui-layer-content a{
  color: #00a0e9;
}
.buying-pop .layui-layer-btn{
  text-align: center;
}

</style>
